package com.linln.modules.withdrawal.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * @author : pengliang
 * @version V1.0
 * @Project: timo
 * @Package com.linln.modules.withdrawal.domain
 * @Descriptio /**
 * @Project: timo
 * @Package com.linln.modules.withdrawal.domain
 * @Description: TODO
 * @date Date : 2020年12月30日 10:50
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tbl_withdrawal")
public class Withdrawal {

    public Withdrawal(String withdrawalId, Long examinePeopleId, Integer status, String refuseReason,String examineDate) {
        this.withdrawalId = withdrawalId;
        this.examinePeopleId = examinePeopleId;
        this.status = status;
        this.refuseReason = refuseReason;
        this.examineDate = examineDate;
    }

    public Withdrawal(String withdrawalId, String transferCredential) {
        this.withdrawalId = withdrawalId;
        this.transferCredential = transferCredential;
    }

    public Withdrawal(String withdrawalId, Integer status, String transferCredential,String transferDate) {
        this.withdrawalId = withdrawalId;
        this.status = status;
        this.transferCredential = transferCredential;
        this.transferDate = transferDate;
    }

    /**
     * 提现id
     */
    @TableId(value = "withdrawal_id", type = IdType.UUID)
    private String withdrawalId;

    /**
     * 店铺id
     */
    @TableField(value = "shop_id")
    private String shopId;

    /**
     * 店铺名称
     */
    @TableField(value = "shop_name", exist = false)
    private String shopName;

    /**
     * 店铺电话
     */
    @TableField(value = "phone", exist = false)
    private String phone;

    /**
     * 审核人员id
     */
    @TableField(value = "examine_people_id")
    private Long examinePeopleId;

    /**
     * 审核人员名称
     */
    @TableField(value = "examine_people_Name", exist = false)
    private String examinePeopleName;


    /**
     * 提现金额
     */
    @TableField(value = "withdrawal_money")
    private Double withdrawalMoney;

    /**
     * 提现时间
     */
    @TableField(value = "withdrawal_date")
    private String withdrawalDate;

    /**
     * 审核时间
     */
    @TableField(value = "examine_date")
    private String examineDate;

    /**
     * 状态 0待审核  1已拒绝 2待转账 3已转账
     */
    @TableField(value = "`status`")
    private Integer status;

    /**
     * 转账凭据 图片地址
     */
    @TableField(value = "transfer_credential")
    private String transferCredential;

    /**
     * 转账时间
     */
    @TableField(value = "transfer_date")
    private String transferDate;
    /**
     * 拒绝原因
     */
    @TableField(value = "refuse_reason")
    private String refuseReason;

    public static final String COL_WITHDRAWAL_ID = "withdrawal_id";

    public static final String COL_SHOP_ID = "shop_id";

    public static final String COL_EXAMINE_PEOPLE_ID = "examine_people_id";

    public static final String COL_WITHDRAWAL_MONEY = "withdrawal_money";

    public static final String COL_WITHDRAWAL_DATE = "withdrawal_date";

    public static final String COL_EXAMINE_DATE = "examine_date";

    public static final String COL_STATUS = "status";

    public static final String COL_TRANSFER_CREDENTIAL = "transfer_credential";

    public static final String COL_TRANSFER_DATE = "transfer_date";
}
